package com.yc.cloud.openai.portal.service;

import com.yc.cloud.openai.portal.dto.request.SpeechToTextRequest;
import com.yc.cloud.openai.portal.dto.request.TextToSpeechRequest;
import com.yc.cloud.openai.portal.dto.response.SpeechToTextResponse;
import com.yc.cloud.openai.portal.dto.response.TextToSpeechResponse;
import org.springframework.web.multipart.MultipartFile;

public interface AudioService {
    /**
     * 文本转语音
     *
     * @param request 文本转语音请求
     * @return 文本转语音响应
     */
    TextToSpeechResponse convertTextToSpeech(TextToSpeechRequest request);

    /**
     * 语音转文本
     * @param request 语音转文本请求
     * @return 语音转文本响应
     */
    SpeechToTextResponse convertSpeechToText(MultipartFile file, SpeechToTextRequest request);
}
